package org.home.and.feign;

import org.home.and.constant.AppConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liou
 */
@FeignClient(
        value = AppConstant.APPLICATION_SYSTEM_NAME,
        fallback = ISystemClientFallback.class
)
public interface ISystemClient {

    String API_PREFIX = "/client";
    String GET_BY_ID = API_PREFIX + "/system/get-by-id";

    /**
     * 123asd
     * @return
     * @param code
     */
    @GetMapping(GET_BY_ID)
    String getById(@RequestParam("str") String code) throws Exception;
}
